package com.lww.springcloudapi.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.awt.*;
import java.io.Serializable;

import com.lww.springcloudapi.entity.parent.ParentEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 积分商城
 * </p>
 *
 * @author SHEN
 * @since 2021-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false) //比较HashCode值
@NoArgsConstructor //无参构造
@AllArgsConstructor //有参构造
@Accessors(chain = true) //链式编程
@ApiModel(value = "TabCommodity对象", description = "积分商城")
public class TabCommodity extends ParentEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品名称")
    @TableField("cName")
    private String cname;

    @ApiModelProperty(value = "商品积分价格")
    @TableField("Money")
    private Double money;

    @ApiModelProperty(value = "商品类型(实体物体0,虚拟1)")
    @TableField("cType")
    private String ctype;

    @ApiModelProperty(value = "商品数量")
    @TableField("Number")
    private Integer number;

    @ApiModelProperty(value = "描述")
    @TableField("cDescribe")
    private String cDescribe;

    @ApiModelProperty(value = "图片")
    @TableField("image")
    private byte[] image;

}
